﻿<controls:ChildWindow x:Class="LightSwitchApplication.DialogLauncherWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="431.8" Height="123.2" 
           Title="DialogLauncherWindow">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            
            <TextBlock Grid.Row="0" Grid.Column="0" Text="Selected File:" VerticalAlignment="Center" />
            <TextBox Grid.Row="0" Grid.Column="1" Name="FileTextBox" VerticalAlignment="Center" Margin="5, 0, 5, 0" IsEnabled="True" IsReadOnly="True"/>
            <Button Grid.Row="0" Grid.Column="2" Content="Browse" VerticalAlignment="Center" HorizontalAlignment="Right" Name="BrowseButton" Width="75" Click="BrowseButton_Click" />

        </Grid>
       
        <Grid Grid.Row="1" HorizontalAlignment="Right">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>

            <Button Grid.Column="0" Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Margin="0,0,5,0" />
            <Button Grid.Column="1" Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" />
        </Grid>
    </Grid>
</controls:ChildWindow>